import org.gearman.client.GearmanJobResult;
import org.gearman.client.GearmanJobResultImpl;
import org.gearman.util.ByteUtils;


public class WorkerFunctionEx extends AbstractWorkerFunction {

	@Override
	public GearmanJobResult executeFunction() {
		
		StringBuffer sb = new StringBuffer(ByteUtils.fromUTF8Bytes((byte[]) this.data));		
        GearmanJobResult gjr = new GearmanJobResultImpl(this.jobHandle, true, sb.reverse().toString().getBytes(), 
        		new byte[0], new byte[0], 0, 0);
        return gjr;
	}

}
